﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    
    x:Class="Lottery.Client.SL.SystemMain"
    mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" Width="980" Height="665">

    <UserControl.Resources>
        <Style x:Key="MenuSelectItemFontStyle" TargetType="TextBlock">
            <Setter Property="FontFamily" Value="宋体"/>
            <Setter Property="FontSize" Value="12"/>
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="TextAlignment" Value="Center"/>
        </Style>
        <Style x:Key="MenuSelectItemFontStyle1" TargetType="TextBlock">
            <Setter Property="FontFamily" Value="宋体"/>
            <Setter Property="FontSize" Value="12"/>
            <Setter Property="Foreground" Value="#FFFF0303"/>
            <Setter Property="TextAlignment" Value="Center"/>
        </Style>
        <Style x:Key="MenuNormalItemStyle1" TargetType="TextBlock">
            <Setter Property="FontFamily" Value="Portable User Interface"/>
            <Setter Property="FontSize" Value="12"/>
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="TextAlignment" Value="Center"/>
        </Style>
        <Style x:Key="MenuNormalItemStyle" TargetType="TextBlock">
            <Setter Property="FontFamily" Value="Portable User Interface"/>
            <Setter Property="FontSize" Value="12"/>
            <Setter Property="Foreground" Value="#FF000000"/>
            <Setter Property="TextAlignment" Value="Center"/>
        </Style>
    </UserControl.Resources>
    <Canvas x:Name="LayoutRoot">
        <Canvas.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF646464"/>
                <GradientStop Color="#FF2F2F2F" Offset="1"/>
                <GradientStop Color="#FF474545" Offset="0.1"/>
                <GradientStop Color="#FF626262" Offset="0.212"/>
                <GradientStop Color="#FF232222" Offset="0.043"/>
            </LinearGradientBrush>
        </Canvas.Background>
        <Rectangle Height="624" Canvas.Top="39" Width="263" Stroke="#4CFFFFFF" RadiusX="5" RadiusY="5" Canvas.Left="716" Fill="#FF373737"/>
        <!--<Rectangle Height="618" Canvas.Top="39" Width="248" Stroke="#4CFFFFFF" RadiusX="5" RadiusY="5" Canvas.Left="5" Fill="#FF373737"/>-->
        <Canvas x:Name="Logo" Height="119" Canvas.Left="720" Canvas.Top="50" Width="140">
            <Ellipse Height="78" Canvas.Left="41" Canvas.Top="15" Width="78" Fill="#FFFBF5AE">
                <Ellipse.Effect>
                    <BlurEffect Radius="15"/>
                </Ellipse.Effect>
            </Ellipse>
            <Ellipse Height="94" Width="94" Canvas.Left="26" Canvas.Top="7">
                <Ellipse.Fill>
                    <RadialGradientBrush>
                        <GradientStop Color="#CBFFBB00"/>
                        <GradientStop Color="Transparent" Offset="0.917"/>
                    </RadialGradientBrush>
                </Ellipse.Fill>
            </Ellipse>
            <Image Height="78" Canvas.Left="43" Source="Images/logo.png" Stretch="Fill" Width="74" Canvas.Top="13"/>
            <Canvas x:Name="btnAddMoney" Height="20" Canvas.Left="138" Canvas.Top="94" Width="60">
                <Rectangle Height="22" Width="56" Stroke="#7FFFFFFF" RadiusX="2" RadiusY="2">
                    <Rectangle.Fill>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFADADAD" />
                            <GradientStop Color="#FF6E6E6B" Offset="1" />
                        </LinearGradientBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <TextBlock Height="14" Canvas.Left="22" TextWrapping="Wrap" Text="充值" Canvas.Top="3" Width="25" Foreground="#FFEDEDDB" FontSize="10.667" FontFamily="宋体" />
                <Ellipse Height="6" Canvas.Left="5" Stroke="#7F3F3F3F" Canvas.Top="10" Width="10" Fill="#FFE7EFB5" StrokeThickness="0.2" />
                <Ellipse Height="6" Canvas.Left="5" Stroke="#7F3F3F3F" Canvas.Top="7" Width="10" Fill="#FFDBFF08" StrokeThickness="0.2" />
                <Ellipse Height="6" Canvas.Left="5" Stroke="#7F3F3F3F" Canvas.Top="4" Width="10" Fill="#FFFFC808" StrokeThickness="0.2" />
            </Canvas>
        </Canvas>
        <Canvas Height="97" Canvas.Left="860" Canvas.Top="49" Width="168">
            <TextBlock Height="16" TextWrapping="Wrap" Text="欢迎您：" Width="168" Foreground="White" HorizontalAlignment="Right" FontWeight="Light" FontStretch="SemiExpanded" FontSize="12" FontFamily="Lucida Sans" Canvas.Top="2"/>
            <TextBlock x:Name="tbName" Height="16" Canvas.Left="54" TextWrapping="Wrap" Text="{Binding Name}"  Canvas.Top="2" Width="106" Foreground="#FFFFDD00" HorizontalAlignment="Right" FontWeight="Light" FontStretch="SemiExpanded" FontSize="12"/>
            <TextBlock Height="16" Canvas.Left="1" TextWrapping="Wrap" Text="级   别："  Canvas.Top="24" Width="57" Foreground="White" HorizontalAlignment="Right" FontWeight="Light" FontStretch="SemiExpanded" FontSize="12"/>
            <TextBlock x:Name="tbLevel" Height="16" Canvas.Left="54" TextWrapping="Wrap" Text="{Binding Levels}" Canvas.Top="24" Width="106" Foreground="White" HorizontalAlignment="Right" FontWeight="Light" FontStretch="SemiExpanded" FontSize="12"/>
            <TextBlock Height="16" Canvas.Left="1" TextWrapping="Wrap" Text="余   额：" Canvas.Top="46" Width="57" Foreground="White" HorizontalAlignment="Right" FontWeight="Light" FontStretch="SemiExpanded" FontSize="12"/>
            <TextBlock x:Name="tbBalance" Height="16" Canvas.Left="53" TextWrapping="Wrap" Text="{Binding Balance,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Canvas.Top="46" Width="107" Foreground="White" HorizontalAlignment="Right" FontWeight="Light" FontStretch="SemiExpanded" FontSize="12"/>
            <TextBlock Height="16" Canvas.Left="1" TextWrapping="Wrap" Text="冻   结：" Canvas.Top="68" Width="57" Foreground="White" HorizontalAlignment="Right" FontWeight="Light" FontStretch="SemiExpanded" FontSize="12"/>
            <TextBlock x:Name="tbFreeze" Height="16" Canvas.Left="53" TextWrapping="Wrap" Text="{Binding Freeze,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Canvas.Top="68" Width="107" Foreground="White" HorizontalAlignment="Right" FontWeight="Light" FontStretch="SemiExpanded" FontSize="12"/>
            <Canvas x:Name="btnWithdraw" Height="20" Canvas.Left="60" Canvas.Top="95" Width="60">
                <Rectangle Height="22" Width="56" Stroke="#7FFFFFFF" RadiusX="2" RadiusY="2">
                    <Rectangle.Fill>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFADADAD" />
                            <GradientStop Color="#FF6E6E6B" Offset="1" />
                        </LinearGradientBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <TextBlock Height="14" Canvas.Left="22" TextWrapping="Wrap" Text="提现" Canvas.Top="3" Width="25" Foreground="#FFEDEDDB" FontSize="10.667" FontFamily="宋体" />
                <Ellipse Height="6" Canvas.Left="5" Stroke="#7F3F3F3F" Canvas.Top="10" Width="10" Fill="#FFD9DCCB" StrokeThickness="0.2" />
                <Ellipse Height="6" Canvas.Left="5" Stroke="#7F3F3F3F" Canvas.Top="7" Width="10" Fill="#FFC0C0BF" StrokeThickness="0.2" />
                <Ellipse Height="6" Canvas.Left="5" Stroke="#7F3F3F3F" Canvas.Top="4" Width="10" Fill="#FFDEDDDA" StrokeThickness="0.2" />
            </Canvas>
        </Canvas>
        <Canvas Canvas.Left="14" Canvas.Top="146" Width="50">
            <TextBlock x:Name="lb_connect" HorizontalAlignment="Center" VerticalAlignment="Center" Width="90"/>
        </Canvas>
        <Rectangle Height="44" Canvas.Top="174" Width="236" RadiusX="4" RadiusY="4" RenderTransformOrigin="0.5,0.5" Fill="#FF5C5959" Canvas.Left="740" StrokeThickness="0">
            <Rectangle.RenderTransform>
                <CompositeTransform ScaleY="-1"/>
            </Rectangle.RenderTransform>
        </Rectangle>
        <Rectangle Height="11" Canvas.Left="740" Canvas.Top="202" Width="236">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFC6C3C3"/>
                    <GradientStop Offset="1" Color="#FF787878"/>
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Rectangle Fill="#FF343434" Height="430" Canvas.Left="740" RadiusY="5" RadiusX="5" Stroke="#FF6C6C6C" Canvas.Top="208" Width="237"/>
        <Canvas Height="628" Canvas.Left="0" Canvas.Top="26" Width="660" d:IsHidden="True" d:IsLocked="True"></Canvas>
        <Grid x:Name="ToolBar" Height="26" Canvas.Left="0" Width="980" Canvas.Top="0">
            <Rectangle x:Name="Rect" RadiusX="5" RadiusY="5" StrokeThickness="0" Opacity="0">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#7F000000" Offset="0.058"/>
                        <GradientStop Color="#19FFFFFF"/>
                        <GradientStop Color="#FF3F4447" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <TextBlock TextWrapping="Wrap" Text="Loterry Demo" Width="100" Foreground="#FFA9D6A2" HorizontalAlignment="Left" FontWeight="Light" FontStretch="SemiExpanded" FontSize="12" Margin="6,4,143,6" />
            <Canvas Margin="0,0,1,2" HorizontalAlignment="Right">
                <Canvas x:Name="btnClose" Height="15" Canvas.Top="6" Width="15" Background="Transparent" Canvas.Left="-24">
                    <Rectangle Fill="#7FFFFFFF" Height="10" Width="2" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto" Canvas.Left="6.335" Canvas.Top="2.001">
                        <Rectangle.RenderTransform>
                            <CompositeTransform SkewX="45"/>
                        </Rectangle.RenderTransform>
                    </Rectangle>
                    <Rectangle Fill="#7FFFFFFF" Height="10" Width="2" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto" Canvas.Left="6.335" Canvas.Top="2.001">
                        <Rectangle.RenderTransform>
                            <CompositeTransform SkewX="-45"/>
                        </Rectangle.RenderTransform>
                    </Rectangle>
                </Canvas>
                <Canvas x:Name="Minimized" Height="15" Canvas.Top="6" Width="15" Background="Transparent" Canvas.Left="-44">
                    <Rectangle x:Name="min" Fill="#7FFFFFFF" Height="2" Width="14" RenderTransformOrigin="0,0" StrokeThickness="0" Canvas.Top="5"/>
                </Canvas>
                <Canvas x:Name="CvSoundImg" Height="15" Canvas.Left="-66" Canvas.Top="5" Width="16" Background="Transparent">
                    <Image Source="Images/sound.png" Stretch="Fill" Width="16" Height="15" HorizontalAlignment="Left"/>
                    <Canvas x:Name="CvSoundMute" Height="12" Width="1" Canvas.Top="7" Canvas.Left="3" Visibility="Collapsed">
                        <Ellipse Height="8" Canvas.Left="1" Width="8" Fill="#B9FFFFFF" Stroke="#FFE95015"/>
                        <Rectangle Height="8" StrokeThickness="0" Width="1" Fill="#FFE95015" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto" Canvas.Left="4.5">
                            <Rectangle.RenderTransform>
                                <CompositeTransform Rotation="128.346"/>
                            </Rectangle.RenderTransform>
                        </Rectangle>
                    </Canvas>
                </Canvas>
            </Canvas>
            <Ellipse Height="1" StrokeThickness="0" Margin="0,0,0,-1" VerticalAlignment="Bottom">
                <Ellipse.Fill>
                    <RadialGradientBrush GradientOrigin="0.023,0.044">
                        <GradientStop Offset="1" Color="#26C8C8C8"/>
                        <GradientStop Color="#4CFFFFFF"/>
                    </RadialGradientBrush>
                </Ellipse.Fill>
            </Ellipse>
        </Grid>
        <Canvas x:Name="btnPoint" Height="20" Canvas.Left="716" Canvas.Top="181" Width="21" Background="Transparent" RenderTransformOrigin="0.5,0.5">
        </Canvas>
        <!--<Path Data="M0,0 L40,0 L40,40 L37.171555,40 L37.171555,2.8284276 L0,2.8284276 z" Height="9" RenderTransformOrigin="0.500000003560558,0.499999996040922" Stretch="Fill" UseLayoutRounding="False" Width="9" Fill="#FFCEFF00" Canvas.Top="5.336" Canvas.Left="1.335" >
                <Path.RenderTransform>
                    <CompositeTransform Rotation="225"/>
                </Path.RenderTransform>
            </Path>-->
            <!--<Path Data="M0,0 L40,0 L40,40 L37.171555,40 L37.171555,2.8284276 L0,2.8284276 z" Height="9" RenderTransformOrigin="0.500000003560558,0.499999996040922" Stretch="Fill" UseLayoutRounding="False" Width="9" Fill="#FFCEFF00" Canvas.Left="6.67" Canvas.Top="5.336" >
                <Path.RenderTransform>
                    <CompositeTransform Rotation="225"/>
                </Path.RenderTransform>
            </Path>-->
        <Canvas x:Name="Menu" Height="34" Canvas.Left="740" Canvas.Top="172" Width="106">
            <Path x:Name="SelectItem" Data="M5,0 L64,0 C66.761421,0 69,2.2385759 69,5 L69,12 L69,27 L69,36 L0,36 L0,27 L0,12 L0,5 C0,2.2385759 2.2385762,0 5,0 z" Height="34" Stretch="Fill" UseLayoutRounding="False" Width="69" Opacity="0.88" Canvas.Top="1">
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFFF5210" Offset="0.088"/>
                        <GradientStop Color="#FFF5F1E0" Offset="0.142"/>
                        <GradientStop Color="#FFE0E0DD" Offset="0.685"/>
                        <GradientStop Color="#FFA09F9F" Offset="1"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <TextBlock Height="16" TextWrapping="Wrap" Text="彩种选择" Width="57" HorizontalAlignment="Right" FontStretch="SemiExpanded" Canvas.Top="8" Canvas.Left="3" Style="{StaticResource MenuSelectItemFontStyle1}"    />
            <TextBlock Height="16" Canvas.Left="77" TextWrapping="Wrap" Text="用户信息" Canvas.Top="10" Width="58" HorizontalAlignment="Right" FontWeight="Light" FontStretch="SemiExpanded" Style="{StaticResource MenuNormalItemStyle1}" FontSize="10.667"   />
            <TextBlock Height="16" Canvas.Left="140" TextWrapping="Wrap" Text="代理中心" Width="57" HorizontalAlignment="Right" FontWeight="Light" FontStretch="SemiExpanded" Canvas.Top="9" Style="{StaticResource MenuNormalItemStyle1}" FontSize="10.667"  />
        </Canvas>
        <HyperlinkButton x:Name="lbService" HorizontalAlignment="Right" VerticalAlignment="Center" Canvas.Left="925" Canvas.Top="630" Foreground="#FF27EBEF" Content="在线客服" TargetName="_blank" />
        <Canvas x:Name="CvBuyLottery" Width="712" Height="665" Canvas.Left="0" Canvas.Top="39"></Canvas>
        <Canvas x:Name="MenuContent" Height="395" Canvas.Left="741" Canvas.Top="208" Width="239"></Canvas>
    </Canvas>
</UserControl>
